<table cellpadding="1" cellspacing="5" style="border-spacing:15px; border-collapse:separate;">
    <tr><td width="29"></td>
      <td>&nbsp;</td>
      <td></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td></td>
      <td align="right">属于类别：
        
      </td>
      <td>
      	<select name="cid" class="Ipt" id="cid" onchange="location.href='<?php echo $this->config->base_url('manager/property'); ?>?cid='+this.value">
        <option value="">...请选择类别</option>
        <option<?php if($cid == '0') { echo ' selected="selected"'; }?> value="0">属于通用类别(不属于任何类别)</option>
         <?php 
         if(!empty($channel)) {
             foreach($channel as $k=>$v) {
				 $disable = '';
				 if($v['parent'] == 0 && !empty($v['children'])) $disable = 'disabled="disabled"';
				 $select = $cid == $v['cid'] ? 'selected="selected"' : NULL;
                 $depth = "";
                 for($i = 0; $i < $v['depth']; $i++) {
                     $depth .= '﹣';
                 }
                 echo "<option ". $select." ".$disable." value='".$v['cid']."'>".$depth.$v['title']. '(' . $v['en_title'] . ')' . "</option>";
             }
         }
         ?>
      </select></td>
      <td align="right">&nbsp;</td>
      <td>&nbsp;</td>
    </tr>                                <tr>
      <td></td>
      <td align="right">通用多选tag属性名称：      </td>
      <td><input class="Ipt" id="title" type="text" value="" name="title" onBlur="this.className='Ipt'" onFocus="this.className='IptOnF'"></td>
      <td align="left"></td>
      <td>&nbsp;</td>
    </tr>                                                                <tr>
      <td></td>
      <td align="right">英文名称： </td>
      <td><input class="Ipt" id="en_title" type="text" value="" name="en_title" onBlur="this.className='Ipt'" onFocus="this.className='IptOnF'"></td>
      <td align="right">&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td></td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td align="right">&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td></td>
      <td>&nbsp;</td>
      <td><input class="Btn BtnNml" onMouseOver="this.className='Btn BtnHv'" onMouseOut="this.className='Btn BtnNml'" type="submit" value="增加通用多选属性">
      <input name="__H" value="add" type="hidden" />
      </td>
      <td></td>
      <td></td>
    </tr>
</table>
<script>
function checkdata() {
	if($('#cid').val() == '') {
		parent.myshow('请选择类别！');
		return false;	
	}
	if($('#title').val() == '') {
		parent.myshow('多选属性名称是必填项！');
		return false;	
	}
}
</script>
<h4 id="oH4Check" class="Ibx_Lst_bExtra">多个主机随机选择</h4>
<style type="text/css">
.host_list{}
.host_list tr{border-bottom:1px solid #CCC;}
.host_list tr td{font-size:12px;}
</style>
<table class="host_list" id="host_list" cellpadding="1" cellspacing="5" style="border-spacing:15px; border-collapse:separate; border-bottom:solid 1px #CCC;">
    <tr>
      <td></td>
      <td>属于类别</td>
      <td>名称</td>
      <td>英文名称</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>操作</td>
    </tr>
    <?php if(!empty($property)) {
		  foreach($property as $k => $v) {
			  $comm_attribute = $v['cid'] == 0 ? '通用类别' : '';
   ?>
    <tr id="title">
        <td width="29"></td>
        <td><?php echo $comm_attribute;?></td>
        <td><?php echo $v['title'];?></td>
        <td><?php echo $v['en_title'];?></td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>修改 | 删除</td>
    </tr>
    <?php }} ?>   
</table>

<?php include 'inc/#edit_div.php';?>
